Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2025.1 release #62

Merged
merged 116 commits into from
Feb 20, 2025
Merged

2025.1 release #62

merged 116 commits into from
Feb 20, 2025

Conversation

domdinicola
Copy link
Collaborator

No description provided.

saxix and others added 21 commits December 2, 2024 09:14
* feature/uv: (27 commits)
  removes unused file
  lint
  rebase
  uv package manager
  updates CI
  updates pre-commit config
  add docs CI
  move from pdm to uv
  updates template footer
  updates footer
  updates deps
  updates nginx conf
  updates CI
  updates deps
  updates CI
  updates CI
  updates pre-commit config
  updates pre-commit config
  updates pre-commit config
  add docs CI
  ...
Django upgrade & Ruff
"MAILJET_SECRET_KEY": (str, ""),
"MATOMO_ID": (str, "", "", False),
"MATOMO_SITE": (str, "https://unisitetracker.unicef.io/"),
"MEDIA_ROOT": (str, "/tmp/media/"), # noqa

Check warning

Code scanning / Bandit

Probable insecure usage of temp file/directory. Warning

Probable insecure usage of temp file/directory.
str,
"aurora.web.storage.ForgivingManifestStaticFilesStorage",
),
"STATIC_ROOT": (str, "/tmp/static/"), # noqa

Check warning

Code scanning / Bandit

Probable insecure usage of temp file/directory. Warning

Probable insecure usage of temp file/directory.
# Graph API
AZURE_GRAPH_API_BASE_URL = "https://graph.microsoft.com"
AZURE_GRAPH_API_VERSION = "v1.0"
AZURE_TOKEN_URL = "https://login.microsoftonline.com/unicef.org/oauth2/token" # noqa

Check notice

Code scanning / Bandit

Possible hardcoded password: 'https://login.microsoftonline.com/unicef.org/oauth2/token' Note


import jmespath
from concurrency.fields import AutoIncVersionField
from Crypto.PublicKey import RSA

Check failure

Code scanning / Bandit

The pyCrypto library and its module RSA are no longer actively maintained and have been deprecated. Consider using pyca/cryptography library. Error

The pyCrypto library and its module RSA are no longer actively maintained and have been deprecated. Consider using pyca/cryptography library.
@@ -39,7 +39,7 @@

def test_basics(self):
self.assertEqual(list(self.t1.sites.all()), [self.site1])
self.assertTrue("base" in self.t1.content)
assert "base" in self.t1.content

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
overwrite=DATABASE_TO_FILES,
)
assert os.path.exists(temp_template_path)
assert not Template.objects.filter(name="temp_test.html").exists()

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

def test_get_cache(self):
self.assertTrue(isinstance(get_cache_backend(), BaseCache))
assert isinstance(get_cache_backend(), BaseCache)

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

def test_check_template_syntax(self):
bad_template, _ = Template.objects.get_or_create(name="bad.html", content="{% if foo %}Bar")
good_template, _ = Template.objects.get_or_create(name="good.html", content="{% if foo %}Bar{% endif %}")
self.assertFalse(check_template_syntax(bad_template)[0])
self.assertTrue(check_template_syntax(good_template)[0])
assert not check_template_syntax(bad_template)[0]

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
self.assertFalse(check_template_syntax(bad_template)[0])
self.assertTrue(check_template_syntax(good_template)[0])
assert not check_template_syntax(bad_template)[0]
assert check_template_syntax(good_template)[0]

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

def test_get_cache_name(self):
self.assertEqual(get_cache_key("name with spaces"), "dbtemplates::name-with-spaces::1")
assert get_cache_key("name with spaces") == "dbtemplates::name-with-spaces::1"

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

Attention: Patch coverage is 70.45790% with 200 lines in your changes missing coverage. Please review.

Please upload report for BASE (master@43ba0ac). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/aurora/core/utils.py 59.61% 18 Missing and 3 partials ⚠️
src/aurora/registration/admin/registration.py 47.50% 19 Missing and 2 partials ⚠️
src/aurora/i18n/templatetags/itrans.py 10.52% 16 Missing and 1 partial ⚠️
src/aurora/counters/views.py 36.00% 16 Missing ⚠️
src/aurora/core/admin/field_editor.py 36.84% 12 Missing ⚠️
src/aurora/core/models.py 78.57% 10 Missing and 2 partials ⚠️
src/aurora/i18n/templatetags/hreflang.py 0.00% 11 Missing and 1 partial ⚠️
src/aurora/core/admin/form_editor.py 25.00% 9 Missing ⚠️
src/aurora/api/viewsets/registration.py 33.33% 6 Missing ⚠️
src/aurora/config/fragments/sentry.py 45.45% 5 Missing and 1 partial ⚠️
... and 36 more
Additional details and impacted files
@@            Coverage Diff            @@
##             master      #62   +/-   ##
=========================================
  Coverage          ?   66.29%           
=========================================
  Files             ?      200           
  Lines             ?     7317           
  Branches          ?      654           
=========================================
  Hits              ?     4851           
  Misses            ?     2282           
  Partials          ?      184           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@domdinicola domdinicola merged commit 39e0aae into master Feb 20, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants